package com.ruibang.glass.equipment.domain.req;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @program: glass
 * @description: 检维修请求信息
 * @author: wujie
 * @create: 2024-04-12 11:13
 */
@Data
public class RepairPlanReq {
    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "区域")
    private String area;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "专业")
    private String professionalId;

    @ApiModelProperty(value = "施工单位")
    private String contractor;

    @ApiModelProperty(value = "项目负责人")
    private String projectLeaderName;

    @ApiModelProperty(value = "确认人")
    private String confirmPersonName;
    @TableLogic
    private String isDelete;

    @ApiModelProperty(value = "业务阶段1:检修计划单,2:维修作业单,3:维修确认单")
    private String businessStage;

    @ApiModelProperty(value = "计划开工开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate plannedStartTime;

    @ApiModelProperty(value = "计划开工结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate plannedEndTime;

    @ApiModelProperty(value = "实际开工开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate actualStartTime;

    @ApiModelProperty(value = "实际开工结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate actualEndTime;

    @ApiModelProperty(value = "实际完成开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate actualFinishStartTime;

    @ApiModelProperty(value = "实际完成结束时间")
    private LocalDate actualFinishEndTime;
}
